import carla
import random
import time

client = carla.Client('localhost', 2000)
client.set_timeout(2.0)
world = client.get_world()
actor_list = world.get_actors()
for actor in actor_list:
    if 'role_name' in actor.attributes and actor.attributes['role_name'] == 'static_vehicle':
        actor.destroy()

print("finish")